<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" language="java"%>
<%@ include file="/page/common/taglibs.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>测试更新</title>
<script type="text/javascript">

function checkForm(f){
	if(f.value.value.trim() == ""){
		alert('请输入value值！');
		f.value.focus();
		return false;
	}
	return true;
}

String.prototype.trim = function() 
{ 
	return this.replace(/(^\s*)|(\s*$)/g, ""); 
}

</script>
</head>
<body>
<s:form action="/test/updateTest.do" onsubmit="return checkForm(this);">
<table width="240" cellpadding="1" cellspacing="1"  align="center">
<tr><td height="50" colspan="2" align="center"><strong>更新</strong></td></tr>
<s:textfield name="testDTO.id" label="id" id="id" readonly="true"/> 
<s:textfield name="testDTO.value" label="value" id="value"/> 
<tr><td height="50" colspan="2" align="center">
<s:submit value="更新" theme="simple" />
<input type="button" value="取消" onclick="javascript:document.location.href='${ctx}/test/findPageTest.do?type=update'" />
</td></tr>
</table>
</s:form>

</body>
</html>